package com.mocha.listener;

import org.springframework.web.filter.*;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;


/**
 * interfaces: {@link javax.servlet.http.HttpSessionAttributeListener},
 * {@link javax.servlet.http.HttpSessionListener},
 * {@link javax.servlet.ServletContextAttributeListener},
 * {@link javax.servlet.ServletContextListener},
 * {@link javax.servlet.ServletRequestAttributeListener},
 * {@link javax.servlet.ServletRequestListener} or
 * {@link javax.servlet.http.HttpSessionIdListener}
 */
@WebListener
public class TestListener implements ServletContextListener {

//    AbstractRequestLoggingFilter
//    CharacterEncodingFilter
//    CommonsRequestLoggingFilter
//    CompositeFilter
//    CorsFilter
//    DelegatingFilterProxy
//    ForwardedHeaderFilter
//    HiddenHttpMethodFilter
//    HttpPutFormContentFilter
//    OncePerRequestFilter
//    RequestContextFilter
//    ServletContextRequestLoggingFilter
//    ShallowEtagHeaderFilter

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        System.out.println("test listener --> contextInitialized");
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        System.out.println("test listener --> contextDestroyed");
    }
}
